package com.mock.action.product;

import java.util.List;

import com.mock.action.AbstractAction;
import com.mock.dao.ProductDao;
import com.mock.dao.impl.ProductDaoImpl;
import com.mock.model.Product;

public class ProductAction extends AbstractAction{
	
	private ProductDao productDao = new ProductDaoImpl();
	private List<Product> products ;
	public String execute() {
		products = productDao.getAllProduct();
		return SUCCESS;
	}
	
	public String productTableAjax() {
		
		return SUCCESS;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

	
}
